var app = getApp();

Page({
    data: {},
    onLoad: function(n) {
        var o = this;
        app.setNavigationBarColor(this), app.util.request({
            url: "entry/wxapp/BmList",
            cachetime: "0",
            data: {
                activity_id: n.id
            },
            success: function(n) {
                console.log("这是获取报名列表"), console.log(n);
                var e, t = n.data;
                if (0 < t.length) {
                    for (var a in t) {
                      var info = t[a];
                      var dt = app.fmtDate2(info.join_time)
                      t[a].time = dt;//app.ormatDate(t[a].time).slice(0, 16)
                      var name = info.name
                      if ('' == name){
                        t[a].name = '未授权'
                      } else if (name.length > 8) {
                        t[a].name = name.slice(0, 8) +"..."
                      }
                      continue
                       "" != t[a].name && null != t[a].name ? 10 <= t[a].name.length ? t[a].name = t[a].name.slice(0, 10) + "..." : 0 == (e = t[a].name/*, 
                    !!new RegExp("[\\u4E00-\\u9FFF]+", "g").test(e)*/) && (t[a].name = " 3...") : t[a].name = "...";
                    }
                    o.setData({
                        bmlist: t
                    });
                } else o.setData({
                    bmlist: 1
                });
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});